package car;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Manipulate {
    public static void main(String[] args) {
        //新店开张
        CarRentalCompany com=new CarRentalCompany();
        Scanner in=new Scanner(System.in);
        System.out.println("请输入新买的车类型：1 轿车,2:客车");
        int choice=in.nextInt();
        Vechile v=null;
        if(choice==1){
            v=new Car();
        }else if(choice==2){
            v=new Bus();
        }
        ///..其他信息
        com.buy(v);
    }
}
